<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">

<ui:composition template="/WEB-INF/template/template2.xhtml">

	<ui:define name="content1">
		<h:form>
			<h:selectOneRadio value="#{techPageBean.menu}"
				valueChangeListener="#{techPageBean.listener}" onchange="submit()">
				<f:selectItem itemValue="User" itemLabel="User" />
				<f:selectItem itemValue="Tech guy" itemLabel="Tech guy" />
			</h:selectOneRadio>
			<f:ajax event="">
				<div class="invertedshiftdown" id="tabContent">
					<ul>
						<li
							class="#{(techPageBean.page eq 'ticketView')? 'current' : 'nothing'}"><h:commandLink
								rendered="#{techPageBean.menu eq 'Tech guy'}" value="Tickets">
								<f:actionListener binding="#{viewTicketsBean.setMessage('')}" />
								<f:actionListener
									binding="#{techPageBean.setPage('ticketView')}" />
								
							</h:commandLink></li>
						<li
							class="#{(techPageBean.page eq 'createRequest')? 'current' : 'nothing'}"><h:commandLink
								rendered="#{techPageBean.menu eq 'Tech guy'}"
								value="Replace request">
								<f:actionListener binding="#{notificationBean.setFeedback('')}" />
								<f:actionListener
									binding="#{techPageBean.setPage('createRequest')}" />
							</h:commandLink></li>
						<li
							class="#{(userPageBean.page eq 'requestResources')? 'current' : 'nothing'}"><h:commandLink
								rendered="#{techPageBean.menu eq 'User'}"
								value="#{msg.BU_mainUser_menu_reqResources}">
								<f:actionListener binding="#{notificationBean.setFeedback('')}"/>
								<f:actionListener binding="#{userPageBean.setPage('requestResources')}"/>
							</h:commandLink></li>
						<li
							class="#{(userPageBean.page eq 'createNotification')? 'current' : 'nothing'}"><h:commandLink
								rendered="#{techPageBean.menu eq 'User'}"
								value="#{msg.BU_mainUser_menu_createNotification}">
								<f:actionListener
									binding="#{userPageBean.setPage('createNotification')}" />
							</h:commandLink></li>
						<li
							class="#{(userPageBean.page eq 'editProfile')? 'current' : 'nothing'}"><h:commandLink
								rendered="#{techPageBean.menu eq 'User'}"
								value="#{msg.BU_mainUser_menu_editProfile}"
								actionListener="#{userPageBean.setPage('editProfile')}" /></li>
						<li
							class="#{(userPageBean.page eq 'editStatus')? 'current' : 'nothing'}"><h:commandLink
								rendered="#{techPageBean.menu eq 'User'}"
								value="#{msg.BU_mainUser_menu_editStatus}"
								actionListener="#{userPageBean.setPage('editStatus')}" /></li>
					</ul>
				</div>
			</f:ajax>
		</h:form>

		<h:panelGroup id="content1" layout="block">

			<h:panelGroup
				rendered="#{techPageBean.page == 'ticketView' and techPageBean.menu == 'Tech guy'}">
				<ui:include src="/tech/ticketView.xhtml" />
			</h:panelGroup>
			<h:panelGroup
				rendered="#{techPageBean.page == 'ticketDetail' and techPageBean.menu == 'Tech guy'}">
				<ui:include src="/tech/ticketDetail.xhtml" />
			</h:panelGroup>
			<h:panelGroup
				rendered="#{techPageBean.page == 'createRequest' and techPageBean.menu == 'Tech guy'}">
				<ui:include src="/tech/createRequest.xhtml" />
			</h:panelGroup>
			<h:panelGroup
				rendered="#{userPageBean.page == 'createNotification' and techPageBean.menu == 'User'}">
				<ui:include src="/user/createNotification.xhtml" />
			</h:panelGroup>
			<h:panelGroup
				rendered="#{userPageBean.page == 'editProfile' and techPageBean.menu == 'User'}">
				<ui:include src="/user/editProfile.xhtml" />
			</h:panelGroup>
			<h:panelGroup
				rendered="#{userPageBean.page == 'viewNotificationHistory' and techPageBean.menu == 'User'}">
				<ui:include src="/user/viewNotificationHistory.xhtml" />
			</h:panelGroup>

			<h:panelGroup
				rendered="#{userPageBean.page == 'requestResources' and techPageBean.menu == 'User'}">
				<ui:include src="/user/requestResources.xhtml" />
			</h:panelGroup>
			<h:panelGroup
				rendered="#{userPageBean.page == 'requestHistory' and techPageBean.menu == 'User'}">
				<ui:include src="/user/requestHistory.xhtml" />
			</h:panelGroup>
			<h:panelGroup
				rendered="#{userPageBean.page == 'editStatus' and techPageBean.menu == 'User'}">
				<ui:include src="/user/editStatus.xhtml" />
			</h:panelGroup>


		</h:panelGroup>
	</ui:define>

</ui:composition>
</html>